package com.java.ThreadDemo1;

public class MyThread extends Thread{
    @Override
    public void run() {
        //线程要执行的代码
        for (int i = 0; i < 30; i++) {
            System.out.println(this.getName() + "Hello world!");
        }
    }
}
